package com.goodluck.goodluckim.network;

public interface WebSocketListener {

    byte STATUS_CONNECT_SUCCESS = 1;

    byte STATUS_CONNECT_CLOSED = 2;

    byte STATUS_CONNECT_ERROR = 3;

    /**
     * 当服务状态发生变化时触发
     *
     * @param statusCode 连接状态
     */
    void onServiceStatusConnectChanged(int statusCode);

    /**
     * 当接收到系统消息
     *
     * @param message 消息接收内容
     */
    void onMessageReceived(String message);
}